package com.abel.quiz.vo;

import com.alibaba.fastjson.JSON;
import com.alibaba.fastjson.JSONArray;
import java.util.ArrayList;
import java.util.List;

import com.abel.quiz.po.SysParamsPo;

/**
* @author abel.lin
* @date_time 2017-08-04 13:03
* @description
*/
public class SysParamsDomain extends SysParamsPo {

    public static SysParamsDomain genDomain(SysParamsPo model){
        if(model == null){
            model = new SysParamsPo();
        }
        SysParamsDomain domain = JSON.parseObject(JSON.toJSONString(model), SysParamsDomain.class);
        return domain;
    }

    public static List<SysParamsDomain> genDomainList(List<SysParamsPo> modelList){
        if(modelList == null){
            modelList = new ArrayList<SysParamsPo>();
        }
        List<SysParamsDomain> domainList = JSONArray.parseArray(JSONArray.toJSONString(modelList), SysParamsDomain.class);
        return domainList;
    }

}
